const config = require("./app/config");

const app = require("./app/index");

// 静态资源
// const path = require("path");
// const static = require("koa-static");
// const staticPath = "./dist";
// app.use(static(path.resolve(__dirname, staticPath)));
// app.use(static("./src/dist"));

// 连接数据库
require("./app/database");

app.listen(config.APP_PORT, () => {
  console.log("服务器启动" + config.APP_PORT);
});
